package com.theima.innerclassdemo.test1.test3;

/**
 * @program: Myset
 * @description:
 * @author: xuejingjing
 * @create: 2021-06-13 12:59
 **/
public class Test3InnerClass {
    /**
     * 私有的成员内部类演示
     */
    public static void main(String[] args) {
        //报错原因是private修饰
        //Outer.Inner io = new Outer().new Inner();
     Outer out = new Outer();
     out.method();

    }

}
class Outer{

    private class Inner{
        public void show(){
            System.out.println("inner show");
        }
    }

    public void method(){
        Inner i = new Inner();
        i.show();
    }
}
